|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.hierarchy.HierarchyNode
j3deditor.bin.hierarchy.J3DeObject
j3deditor.bin.hierarchy.J3DePrimitive
public class J3DePrimitive
Contains and manages an instance of
com.sun.j3d.utils.geometry.Primitive.
Primitive| Constructor Summary | |
|---|---|
J3DePrimitive()
Creates an empty J3DePrimitive object. |
|
J3DePrimitive(PrimitiveType type)
Creates an instance of J3DePrimitive with the given type. |
|
| Method Summary | |
|---|---|
HierarchyNode |
clone(HierarchyNode node)
Clones this node. |
J3DeAppearance |
getAppearance()
Returns the appearance object of this node. |
HierarchyNode |
getChild(int index)
Returns the child at the specified index. |
int |
getIndexOfChild(HierarchyNode child)
Returns the index of specified child. |
int |
getNumberOfChildren()
Returns the number of children. |
void |
init3DObject(javax.media.j3d.Node obj)
Applies the given Node object to this node. |
| Methods inherited from class j3deditor.bin.hierarchy.J3DeObject |
|---|
delete, get3DObject, getObject, getRotationZ, getRotationX, getRotationY, getScaleZ, getScaleX, getScaleY, getTranslationZ, getTranslationX, getTranslationY, initObject, rotate, rotateZ, rotateX, rotateY, scale, scaleAll, scaleZ, scaleX, scaleY, setNode, setObject, translate, translateZ, translateX, translateY |
| Methods inherited from class j3deditor.bin.hierarchy.HierarchyNode |
|---|
equals, getIndex, getParent, getParent, getType, hasNamedChild, removeChild, setName, setParent, toString, updateName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public J3DePrimitive()
J3DePrimitive object.
Requires initialization with init3DObject() method
public J3DePrimitive(PrimitiveType type)
J3DePrimitive with the given type.
type - the type of the primitive| Method Detail |
|---|
public void init3DObject(javax.media.j3d.Node obj)
Node object to this node.
obj - object to be applied to this nodepublic HierarchyNode clone(HierarchyNode node)
clone in class J3DeObjectnode - object sent by subclass, otherwise null
public HierarchyNode getChild(int index)
getChild in class HierarchyNodeindex - index of child
public int getNumberOfChildren()
getNumberOfChildren in class HierarchyNodepublic int getIndexOfChild(HierarchyNode child)
getIndexOfChild in class HierarchyNodechild - child node which index will be returned
public J3DeAppearance getAppearance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||